package com.shop.domain.system;

import com.alibaba.fastjson.annotation.JSONField;
import com.shop.jpa.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <p>SystemConfig 实体类</p>
 * <p>Table: SystemConfig - 系统配置表</p>
 *
 * @author Jerry
 */
@ApiModel("sys_config 实体类")
@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "sys_config")
@DynamicInsert(true)
@DynamicUpdate(true)
public class SysConfig extends BaseDomain implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "config_id", hidden = true)
    @Column(name = "id")
    @JSONField(serialize=false)
    private Long id;


    /** 参数名称 */
    @Column(name = "参数名称")
    private String configName;

    /** 参数键名 */
    @Column(name = "参数键名")
    private String configKey;

    /** 参数键值 */
    @Column(name = "参数键值")
    private String configValue;

    /** 系统内置（Y是 N否） */
    @Column(name = "系统内置 Y=是,N=否")
    private String configType;




}